package com.example.module_main.ui.splash

import com.example.module_main.http.MainApi
import com.example.module_main.http.MainNetModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class SplashRepository @Inject constructor(){
    @Inject
    @MainNetModule.CommonMainApi
     lateinit var mainApi:MainApi
    fun adList()= flow {
        emit(mainApi.adList())
    }.flowOn(Dispatchers.IO)

}